class CartModel {
  bool? checked;
  String? goodImage;
  String? goodName;
  double? goodPrice;
  int? goodsId;
  int? id;
  int? nums;

  CartModel(
      {this.checked,
        this.goodImage,
        this.goodName,
        this.goodPrice,
        this.goodsId,
        this.id,
        this.nums});

  CartModel.fromJson(Map<String, dynamic> json) {
    checked = json['checked'];
    goodImage = json['good_image'];
    goodName = json['good_name'];
    goodPrice = json['good_price'];
    goodsId = json['goods_id'];
    id = json['id'];
    nums = json['nums'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['checked'] = this.checked;
    data['good_image'] = this.goodImage;
    data['good_name'] = this.goodName;
    data['good_price'] = this.goodPrice;
    data['goods_id'] = this.goodsId;
    data['id'] = this.id;
    data['nums'] = this.nums;
    return data;
  }
}